from selenium import webdriver
import unittest
from Page.Page import Page_one
from Tools.Log import have_log
from Page.Page_scd import Page_two


class Test_case_one(unittest.TestCase):
    def setUp(self) -> None:
        print('start case')
        self.driver=webdriver.Chrome()
        have_log()



    def test_01(self):
        page=Page_one(self.driver)
        page.open_url('https://www.jiuxian.com')
        assert_one=page.test_one()
        print('登录成功后断言为',assert_one)
        self.assertEqual(assert_one,'jxw555923334')



    def test_02(self):
        page = Page_two(self.driver)
        page.open_url('https://www.jiuxian.com')
        assert_one = page.test_two()
        print('进入设置个人信息页面断言为', assert_one)
        self.assertEqual(assert_one,'个人信息')




    def tearDown(self) -> None:
        print('end case')
        self.driver.close()




